package com.yugu.park.monitor;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yugu.park.monitor.entity.Server;
import com.yugu.util.ResponseUtil;

@RestController
@RequestMapping("/monitor")
public class ServerController
{
//    @PreAuthorize("@ss.hasPermi('monitor:server:list')")
    @GetMapping("server")
    public ResponseUtil.Result<Server> getInfo() throws Exception
    {
        Server server = new Server();
        server.copyTo();
        return ResponseUtil.addSuccess(server);
    }
}